//
//  BaseViewController.m
//  PlayerVH
//
//  Created by 彭冲 on 24/5/18.
//  Copyright © 2018年 彭冲. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor greenColor];
}

//默认父类控制器不支持选择
- (BOOL)shouldAutorotate {
    return NO;
}

//默认页面方向只支持竖直方向
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortrait;
}

//初始化设备方向是竖直方向
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    return UIInterfaceOrientationPortrait;
}


@end
